package com.carhailing.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author zct
 * @since 2024-07-26
 */

/**
 * 订单表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("order_trade")
public class OrderTrade implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
    @TableId(value = "order_trade_id", type = IdType.AUTO)
    private Long orderTradeId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 订单号
     */
    @TableField("trade_number")
    private Long tradeNumber;

    /**
     * 城市
     */
    @TableField("city_trade")
    private String cityTrade;

    /**
     * 服务类型
     */
    @TableField("service_type_trade")
    private String serviceTypeTrade;

    /**
     * 车辆类型
     */
    @TableField("vehicle_type_trade")
    private Long vehicleTypeTrade;

    /**
     * 上车地点
     */
    @TableField("start_place_trade")
    private String startPlaceTrade;

    /**
     * 下车地点
     */
    @TableField("end_place_trade")
    private String endPlaceTrade;

    /**
     * 订单金额
     */
    @TableField("order_fare_trade")
    private BigDecimal orderFareTrade;

    /**
     * 服务时间
     */
    @TableField("service_duration_trade")
    private Integer serviceDurationTrade;

    /**
     * 服务里程
     */
    @TableField("service_mileage_trade")
    private Integer serviceMileageTrade;

    /**
     * 下单来源
     */
    @TableField("order_source_trade")
    private String orderSourceTrade;

    /**
     * 订单状态
     */
    @TableField("order_status_trade")
    private Integer orderStatusTrade;
}
